package com.koron.system.configSettings.post.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.bean.system.post.po.PostPo;

import java.util.List;

/**
 * (Post)表服务接口
 *
 * @author zhouj
 * @since 2022-01-10 09:24:27
 */
public interface PostService {

    int insertOrUpdate(PostPo post);

    int insertOrUpdateBatch(List<PostPo> postList);

    int insert(PostPo post);

    int insertBatch(List<PostPo> postList);

    int update(PostPo post);

    int deleteById(String id);

    PostPo queryById(String id);

    PageInfo queryPageList(PostPo post, PageQuery pageQuery);

    List<PostPo> queryList(PostPo post);

}
